.emotion-chart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.emotion-chart-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.emotion-chart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px 0 0 20px;
}

.emotion-chart-drawer.visible {
  transform: translateX(0);
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.emotion-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.emotion-chart-title {
  font-size: 50px;
  font-weight: 700;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.emotion-chart-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.days-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
}

.days-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #64748b;
  border-radius: 12px;
  font-size: 40px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.days-btn:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.days-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.chart-type-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  border: none;
  position: relative;
  overflow: hidden;
}

.chart-type-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.chart-type-btn:hover::before {
  left: 100%;
}

.chart-type-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.close-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 50%;
  font-size: 50px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.close-btn:hover {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.2);
}

.emotion-chart-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.emotion-chart-content {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 30%;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.emotion-canvas {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.6);
  backdrop-filter: blur(10px);
}

.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 100px;
}

.loading-text {
  font-size: 50px;
  color: #8c8c8c;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

/* 列表部分样式 */
.emotion-list-section {
  height: 70%;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.emotion-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.section-title {
  font-size: 50px;
  font-weight: 700;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}

.list-summary {
  font-size: 50px;
  color: #8c8c8c;
}

.emotion-list-container {
  flex: 1;
  padding: 0 28px;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* 滚动条样式优化 */
.emotion-list-container::-webkit-scrollbar {
  width: 8px;
}

.emotion-list-container::-webkit-scrollbar-track {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 4px;
  margin: 4px;
}

.emotion-list-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.emotion-list-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: scale(1.1);
}

.emotion-list-item {
  padding: 16px 20px;
  margin: 8px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out;
}

.emotion-list-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.emotion-list-item:hover::before {
  transform: scaleX(1);
}

.emotion-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.emotion-list-item:last-child {
  margin-bottom: 16px;
}

.list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.emotion-tag {
  padding: 6px 12px;
  border-radius: 20px;
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  letter-spacing: 0.5px;
}

.emotion-score {
  font-size: 50px;
  font-weight: 700;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.emotion-context {
  font-size: 45px;
  color: #595959;
  margin-bottom: 2px;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.emotion-time {
  font-size: 35px;
  color: #8c8c8c;
}

/* 分页器样式 */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.page-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  border: none;
}

.page-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.page-btn.disabled {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.page-btn.disabled:hover {
  background: #d9d9d9;
}

.page-info {
  font-size: 50px;
  color: #595959;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .emotion-chart-header {
    padding: 16px;
  }
  
  .emotion-chart-title {
    font-size: 40px;
  }
  
  .days-btn {
    padding: 4px 8px;
    font-size: 35px;
  }
  
  .chart-type-btn {
    padding: 6px 12px;
    font-size: 40px;
  }
  
  .emotion-chart-content {
    padding: 16px;
    height: 30%;
  }
  
  .emotion-list-header {
    padding: 12px 16px;
  }
  
  .section-title {
    font-size: 40px;
  }
  
  .list-summary {
    font-size: 40px;
  }
  
  .emotion-list-container {
    padding: 0 16px;
  }
  
  .pagination {
    padding: 12px 16px;
  }
  
  .page-btn {
    padding: 6px 12px;
    font-size: 40px;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .emotion-chart-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(15, 23, 42, 0.8));
  }
  
  .emotion-chart-drawer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  }
  
  .emotion-chart-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom-color: rgba(71, 85, 105, 0.3);
  }
  
  .emotion-chart-title {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .emotion-chart-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  }
  
  .close-btn {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    color: #cbd5e1;
    border-color: rgba(71, 85, 105, 0.4);
  }
  
  .close-btn:hover {
    background: linear-gradient(135deg, #fecaca 0%, #f87171 100%);
    color: #dc2626;
  }
  
  .days-btn {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    color: #cbd5e1;
    border-color: rgba(71, 85, 105, 0.4);
  }
  
  .days-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #dbeafe;
    border-color: #60a5fa;
  }
  
  .days-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border-color: #2563eb;
  }
  
  .emotion-canvas {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(71, 85, 105, 0.3);
  }
  
  .loading-text {
    color: #94a3b8;
  }
  
  .emotion-list-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-top-color: rgba(71, 85, 105, 0.3);
  }
  
  .emotion-list-header {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border-bottom-color: rgba(71, 85, 105, 0.3);
  }
  
  .emotion-list-container {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  }
  
  .emotion-list-item {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(71, 85, 105, 0.3);
  }
  
  .emotion-list-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
  }
  
  .section-title {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .list-summary {
    color: #94a3b8;
  }
  
  .emotion-score {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .emotion-context {
    color: #cbd5e1;
  }
  
  .emotion-time {
    color: #94a3b8;
  }
  
  .pagination {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border-top-color: rgba(71, 85, 105, 0.3);
  }
  
  .page-btn.disabled {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    color: #94a3b8;
  }
  
  .page-info {
    color: #cbd5e1;
  }
  
  /* 深色模式滚动条样式 */
  .emotion-list-container::-webkit-scrollbar-track {
    background: #334155;
    border-radius: 3px;
  }
  
  .emotion-list-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border-radius: 3px;
  }
  
  .emotion-list-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  }
}